package cn.zhiyuan.theirs.route;

import com.jfinal.config.Routes;

import cn.zhiyuan.theirs.controller.AdminController;
import cn.zhiyuan.theirs.controller.HomeController;
import cn.zhiyuan.theirs.controller.LoginController;
import cn.zhiyuan.theirs.controller.LogoutController;
import cn.zhiyuan.theirs.controller.UserController;

public class AdminRoute extends Routes {

	@Override
	public void config() {
		this.add("/admin", AdminController.class, "/view/admin");
		this.add("/admin/login", LoginController.class, "/view/admin");
		this.add("/admin/logout", LogoutController.class);
		this.add("/home", HomeController.class, "/view/admin/home");
		this.add("/user", UserController.class, "/view/admin/user");
	}

}
